import android.cs2340UDT.Manager;
import android.cs2340UDT.Map;
import junit.framework.TestCase;


public class MarieTest2 extends TestCase{
	
	
	//White Box
	public void testAddress0() {
		assertTrue("Failed address case 1", Map.testAddress("1 First Dr.\nAtlanta, GA 30313"));
	}
	public void testAddress1() {
		assertTrue("Failed address case 2",Map.testAddress("12 First Dr.\nAtlanta, GA 30313"));
	}
	public void testAddress2() {
		assertTrue("Failed address case 3",Map.testAddress("123 First Dr.\nAtlanta, GA 30313"));
	}
	public void testAddress3() {
		assertTrue("Failed address case 4", Map.testAddress("1234 First Dr.\nAtlanta, GA 30313"));
	}
	public void testAddress4() {
		assertTrue("Failed address case 5",Map.testAddress("12345 First Dr.\nAtlanta, GA 30313"));
	}
	public void testAddress5() {
		assertFalse("Failed address case 6", Map.testAddress("123456 First Dr.\nAtlanta, GA 30313"));
	}
	public void testAddress6() {
		assertTrue("Failed address case 7",Map.testAddress("123 F\nAtlanta, GA 30313"));
	}
	public void testAddress7() {
		assertTrue("Failed address case 8", Map.testAddress("123 lowercase\nAtlanta, GA 30313"));
	}
	public void testAddress8() {
		assertFalse("Failed address case 9",Map.testAddress("123\nAtlanta, GA 30313"));
	}
	public void testAddress9() {
		assertFalse("Failed address case 10",Map.testAddress("123 First Dr.\natlanta, GA 30313"));
	}
	public void testAddress10() {
		assertFalse("Failed address case 11",Map.testAddress("123 First Dr.\nAtlanta GA 30313"));
	}
	public void testAddress11() {
		assertFalse("Failed address case 12",Map.testAddress("123 First Dr.\nAtlanta, Ga 30313"));
	}
	public void testAddress12() {
		assertFalse("Failed address case 13",Map.testAddress("123 First Dr.\nAtlanta, ga 30313"));
	}
	public void testAddress13() {
		assertFalse("Failed address case 14",Map.testAddress("123 First Dr.\nAtlanta, Ga 30"));
	}
	public void testAddress14() {
		assertFalse("Failed address case 15",Map.testAddress("123 First Dr.\nAtlanta, Ga 30313-300332"));
	}
	
	
	//Black Box
	public void testName0() {
		assertFalse("Failed name case 1",Manager.testName("Null"));
	}
	public void testName1() {
		assertTrue("Failed name case 2",Manager.testName("Forest Gump"));
	}
	public void testName2() {
		assertFalse("Failed name case 3",Manager.testName("1234"));
	}
	public void testName3() {
		assertFalse("Failed name case 4",Manager.testName("Tomcat"));
	}
	public void testName4() {
		assertFalse("Failed name case 5",Manager.testName("#45678"));
	}
	public void testName5() {
		assertFalse("Failed name case 6",Manager.testName(""));
	}
	public void testName6() {
		assertTrue("Failed name case 7",Manager.testName("The Doctor"));
	}
	public void testName7() {
		assertFalse("Failed name case 8",Manager.testName("-"));
	}
	public void testName8() {
		assertFalse("Failed name case 9",Manager.testName("@#$%"));
	}
	public void testName9() {
		assertFalse("Failed name case 10",Manager.testName(" "));
	}
}
